package com.yequan;

import java.text.*;
import java.util.*;

/**
 * string format
 *
 * @author yequan
 * @date 2020/12/07 09:59
 **/
public class StringFormatDemo {

    public static void main(String[] args) throws ParseException {
        String format = String.format("%s前出发", "12：00");
        System.out.println(freshUser(1611285839000L));
        String s = UUID.randomUUID().toString();
        System.out.println(s);
        System.out.println(s.length());
    }



    private static boolean freshUser(long certifyOpTime) throws ParseException {
        String firstCertifyTime = "2021-01-20 00:00:00";
        Calendar instance = Calendar.getInstance();
        instance.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(firstCertifyTime));
        return certifyOpTime >= instance.getTimeInMillis();
    }

}
